//
//  DrawLineVC.m
//  BezierDemo
//
//  Created by 申元江 on 2018/12/27.
//  Copyright © 2018 yuanjiang. All rights reserved.
//

#import "DrawLineVC.h"
#import "UIView+YJDrawCategory.h"

@interface DrawLineVC ()

@end

@implementation DrawLineVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    [self.view yj_drawDashLineFrompoint:CGPointMake(20, 100) toPoint:CGPointMake(self.view.frame.size.width-20, 100) lineColor:[UIColor redColor] lineWidth:4 lineHeight:4 lineSpace:1 lineType:1];
    
    [self.view yj_drawDashLineFrompoint:CGPointMake(20, 150) toPoint:CGPointMake(self.view.frame.size.width-20, 150) lineColor:[UIColor redColor] lineWidth:4 lineHeight:4 lineSpace:1 lineType:0];
    
    
    [self.view yj_drawPentagram:CGPointMake(50, 200) radius:40 color:[UIColor redColor] rate:0.3];
    
    [self.view yj_drawPentagram:CGPointMake(150, 200) radius:40 color:[UIColor redColor] rate:1.1];
    
    [self.view yj_drawLineFromPoint:CGPointMake(20, 250) toPoint:CGPointMake(self.view.frame.size.width - 20, 250) lineColor:[UIColor redColor] lineHeight:3.0];
    
    [self.view yj_drawRect:CGRectMake(20, 400, self.view.frame.size.width - 40, 100) lineColor:[UIColor redColor] lineWidth:1 lineHeight:1 lineType:1 isDash:NO lineSpace:1];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
